package com.boge.activiti.delegate;

import org.activiti.engine.delegate.BpmnError;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import java.util.Date;

public class MyBoundaryDelegate1 implements JavaDelegate {
    @Override
    public void execute(DelegateExecution execution) {
        System.out.println("错误边界事件1...." + new Date());
        // 显示的抛出 error1 的异常信息。触发 错误开始事件
        //throw new BpmnError("error2");
    }
}
